package cn.smbms.pojo;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
public class User implements Serializable {
	private Integer id; //id 
	private String userCode; //用户编码
	private String userName; //用户名称
	private String userPassword; //用户密码
	private Integer gender;  //性别

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date birthday;  //出生日期
	private String phone;   //电话
	private String address; //地址
	private Integer userRole;    //用户角色
	private Integer createdBy;   //创建者

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date creationDate; //创建时间
	private Integer modifyBy;     //更新者

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date modifyDate;   //更新时间
	private Integer age;//年龄
	private String roleName;    //用户角色名称

	private String idPicPath;	//身份证照片路径

	private String workPicPath;	//工作证照片路径

	public Integer getUserRole() {
		return userRole;
	}

	public void setUserRole(Integer userRole) {
		this.userRole = userRole;
	}



	public User(){

	}

	public User(Integer id,String userCode,String userName,String userPassword,Integer gender,Date birthday,String phone
			,String address,Integer userRole,Integer createdBy,Date creationDate,Integer modifyBy,Date modifyDate){
		this.id = id;
		this.userCode = userCode;
		this.userName = userName;
		this.userPassword = userPassword;
		this.gender = gender;
		this.birthday = birthday;
		this.phone = phone;
		this.address = address;
		this.userRole = userRole;
		this.createdBy = createdBy;
		this.creationDate = creationDate;
		this.modifyBy = modifyBy;
		this.modifyDate = modifyDate;
	}
}
